// 插入下载

jQuery(document).ready(function (a) {
    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
        a(".downon").appendTo(".downmoi");

    } else if (/(Android)/i.test(navigator.userAgent)) {
        a(".downon").appendTo(".downmoi");
    } else {
    }
    ;

    $("#share_btn").on('click', function () {
        var e = document.getElementById("share_url");//对象是content
        e.select(); //选择对象
        document.execCommand("Copy"); //执行浏览器复制命令
        layer.open({title: '温馨提示', content: '复制成功', time: 10000});
    });

    $("#soc_btn").on('click', function () {
        fn_gesoc();
    })

});


$(document).ready(function () {
    "use strict"; // start of use strict



    $('.header__search-input,.header__search-button').on('click', function (e) {
        e.stopPropagation()
        e.preventDefault()

        //Confirm
        layer.confirm('搜索暂时不可用请使用百度', {
            btn: ['好的'] //按钮
        }, function () {
            layer.msg('感谢理解与支持', {icon: 1,});
            setTimeout(()=>{
                window.location.reload()
            },1900)
        });
    })

    /*==============================
    Menu
    ==============================*/
    $('.header__btn').on('click', function () {
        $(this).toggleClass('header__btn--active');
        $('.header__nav').toggleClass('header__nav--active');
    });

    /*==============================
    Back
    ==============================*/
    $('.footer__back').on('click', function () {
        $('body,html').animate({
                scrollTop: 0,
            }, 700
        );
    });


    /*==============================
	侧边栏固定
	==============================*/
    $(window).scroll(function () {
        var t = $(document).scrollTop();
        var r = $(".fixside").height()
        var s = $(".fixsidenav").height();
        s = s - r;
        if (t < 100) {
            $(".fixside").removeClass('fiesd-top');
        } else {
            $(".fixside").addClass('fiesd-top');
        }
        if (t > s) {
            /* $(".fixside").removeClass('fiesd-top');
             $(".fixside").addClass('fiesd-bottom');*/
        } else {
            $(".fixside").removeClass('fiesd-bottom');
        }
    });

    /*==============================
    Range sliders
    ==============================*/
    function initializeSlider() {
        if ($('#filter__range').length) {
            var firstSlider = document.getElementById('filter__range');
            noUiSlider.create(firstSlider, {
                range: {
                    'min': 0,
                    'max': 100
                },
                step: 1,
                connect: true,
                start: [18, 34],
                format: wNumb({
                    decimals: 0,
                    prefix: '$'
                })
            });
            var firstValues = [
                document.getElementById('filter__range-start'),
                document.getElementById('filter__range-end')
            ];
            firstSlider.noUiSlider.on('update', function (values, handle) {
                firstValues[handle].innerHTML = values[handle];
            });
        } else {
            return false;
        }
        return false;
    }

    $(window).on('load', initializeSlider());
});


// hljs行号
$("pre code").each(function () {
    $(this).html("<ol><li>" + $(this).html().replace(/\n/g, "\n</li><li>") + "\n</li></ol>");
});

// 插入移动端边栏

jQuery(document).ready(function (a) {
    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
        a(".s_ping").appendTo(".header__nav");
        a(".header__nav").toggleClass("sxx");
    } else if (/(Android)/i.test(navigator.userAgent)) {
        a(".s_ping").appendTo(".header__nav");
        a(".header__nav").toggleClass("sxx");
    } else {
    }
    ;
});


// 下载提示
$(function () {
    $("#autip").click(function () {
        //alert('请先注册会员哦~');
        layer.open({title: '温馨提示', content: '请先注册会员哦~', time: 10000});
    });
});
// 下载提示
$(function () {
    $("#sotip").click(function () {
        //alert('积分不足,无法下载~');
        layer.open({title: '温馨提示', content: '积分不足,无法下载~', time: 10000});
    });
});

$(function () {
    //scroll 事件适用于所有可滚动的元素和 window 对象（浏览器窗口）。
    $(window).scroll(function () {
        var scroHei = $(window).scrollTop();//滚动的高度
        if (scroHei > 500) {
            $('.back-to-top').css('top', '-200px');
            // $('.back-to-top').fadeIn();
        } else {
            $('.back-to-top').css('top', '-999px');
            // $('.back-to-top').fadeOut();
        }
    })
    /*点击返回顶部*/
    $('.back-to-top').click(function () {
        $('body,html').animate({
            scrollTop: 0
        }, 600);
    })
})

/**
 $(function() {
 if ($("#reward").length > 0) {
 $('#re_2').click(function(){ $('#reward').val($('#re_2 span').text()); $('#reward').attr("disabled","disabled"); })
 $('#re_5').click(function(){ $('#reward').val($('#re_5 span').text()); $('#reward').attr("disabled","disabled");  })
 $('#re_10').click(function(){ $('#reward').val($('#re_10 span').text()); $('#reward').attr("disabled","disabled");  })
 $('#re_20').click(function(){ $('#reward').val($('#re_20 span').text()); $('#reward').attr("disabled","disabled");  })
 $('#re_50').click(function(){ $('#reward').val($('#re_50 span').text()); $('#reward').attr("disabled","disabled"); })
 $('#re_0').click(function(){   $("#reward").val("");  $('#reward').removeAttr("disabled"); $('#reward').focus();  })
 }
 })
 **/

// -----------------------------------积分打卡系统--------------------------------

function fn_gesoc() {
    var gesoc = $('#soc_btn').attr('data-id');
    if (gesoc) {
        if (!isNaN(gesoc)) {
            $.ajax({
                //url: globals.ajax_url,
                url: SPZ.BASE_SOC,
                type: "POST",
                data: {
                    gesoc: gesoc,
                },
                async: true,
                dataType: "json",
                success: function (data) {
                    if (data == null) {
                    } else {
                        $('.soc_input').val(data.gesoc);
                        if (data.gesta == '0') {
                            layer.open({title: '温馨提示', content: '今天已经打过卡了哦!', time: 10000});
                        } else {
                            layer.open({title: '温馨提示', content: '打卡成功,积分+1!', time: 10000});
                        }
                        $('.soc_times').html('打卡时间:' + data.getime);
                    }
                },
                error: function (err) {

                }
            });
        } else {

        }
    } else {

    }
}

// -----------------------------------最近访客--------------------------------
$(document).ready(function () {
    var num = parseInt($(window).height() / 50);
    fn_geuser(num);
})

function fn_geuser(a) { //最近访客*数量
    var genum = a;
    if (genum) {
        if (!isNaN(genum)) {
            $.ajax({
                //url: globals.ajax_url,
                url: SPZ.BASE_GEN,
                type: "POST",
                data: {
                    genum: genum,
                },
                async: true,
                dataType: "json",
                success: function (data) {
                    if (data == null) {
                    } else {
                        $(".chat-users").html(data.vuser);
                    }
                },
                error: function (err) {

                }
            });
        } else {

        }
    } else {

    }
}

//


//  点赞按钮点击
$('#agree-btn').on('click', function () {
    $('#agree-btn').get(0).disabled = true;  //  禁用点赞按钮
    if ($("#disagree-btn").length > 0) {
        $('#disagree-btn').get(0).disabled = true;  //  禁用踩按钮
    }
    //  发送 AJAX 请求
    $.ajax({
        //  请求方式 post
        type: 'post',
        //  url 获取点赞按钮的自定义 url 属性
        url: $('#agree-btn').attr('data-url'),
        //  发送的数据 cid，直接获取点赞按钮的 cid 属性
        data: 'agree=' + $('#agree-btn').attr('data-cid'),
        async: true,
        timeout: 30000,
        cache: false,
        //  请求成功的函数
        success: function (data) {
            var re = /\d/;  //  匹配数字的正则表达式
            //  匹配数字
            if (re.test(data)) {
                //  把点赞按钮中的点赞数量设置为传回的点赞数量
                $('#agree-btn .agree-num').html(data);
                layer.open({title: '温馨提示', content: '感谢支持', time: 10000});
            }
        },
        error: function () {
            //  如果请求出错就恢复点赞按钮
            $('#agree-btn').get(0).disabled = false;
        },
    });
});


//  踩帖按钮点击
$('#disagree-btn').on('click', function () {
    $('#agree-btn').get(0).disabled = true;  //  禁用点赞按钮
    if ($("#disagree-btn").length > 0) {
        $('#disagree-btn').get(0).disabled = true;  //  禁用踩按钮
    }
    //  发送 AJAX 请求
    $.ajax({
        //  请求方式 post
        type: 'post',
        //  url 获取点赞按钮的自定义 url 属性
        url: $('#disagree-btn').attr('data-url'),
        //  发送的数据 cid，直接获取点赞按钮的 cid 属性
        data: 'disagree=' + $('#disagree-btn').attr('data-cid'),
        async: true,
        timeout: 30000,
        cache: false,
        //  请求成功的函数
        success: function (data) {
            var re = /\d/;  //  匹配数字的正则表达式
            //  匹配数字
            if (re.test(data)) {
                //  把点赞按钮中的点赞数量设置为传回的点赞数量
                $('#disagree-btn .disagree-num').html(data);
                layer.open({title: '温馨提示', content: '感谢你的建议', time: 10000});
            }
        },
        error: function () {
            //  如果请求出错就恢复点赞按钮
            $('#disagree-btn').get(0).disabled = false;
        },
    });
});


/**
 * 鍥剧墖鏀惧ぇ闀�
 * Author : Postbird
 * Website: http://www.ptbird.cn
 * License: MIT
 * http://www.jq22.com/jquery-info15705
 */

/*
 * Lazy Load - jQuery plugin for lazy loading images
 * Copyright (c) 2007-2013 Mika Tuupola
 * Licensed under the MIT license:
 *   http://www.opensource.org/licenses/mit-license.php
 * Project home:
 *   http://www.appelsiini.net/projects/lazyload
 * Version:  1.9.3
 */
(function ($, window, document, undefined) {
    var $window = $(window);
    $.fn.lazyload = function (options) {
        var elements = this;
        var $container;
        var settings = {
            threshold: 0,
            failure_limit: 0,
            event: "scroll",
            effect: "show",
            container: window,
            data_attribute: "original",
            skip_invisible: true,
            appear: null,
            load: null,
            placeholder: ""
        };

    };

})(jQuery, window, document);


var PostbirdImgGlass = {
    init: function (objParam) {
        this.domSelector = objParam.domSelector || "img";
        this.width = objParam.width || "auto";
        this.height = objParam.height || "auto";
        this.boxClassName = objParam.boxClassName || 'postbird-img-glass-box';
        this.boxBgColor = objParam.bgColor || 'rgba(0,0,0,0.8)';
        this.animation = objParam.animation || false;
        this.startGlass();
        this.box = this.initImageClassContainer();
    },
    initImageClassContainer: function () {
        var _this = this,
            img = document.createElement('img');
        img.style.width = _this.width;
        img.style.height = _this.height;
        var box = document.createElement("div");
        box.style = _this.boxStyle;
        box.className = _this.boxClassName;
        box.appendChild(img);
        box.onclick = function () {
            _this.hideImageGlass();
        };
        document.body.insertBefore(box, document.body.childNodes[0]);
        this.initCssClass();
        return box;
    },
    startGlass: function () {
        var domList = document.querySelectorAll(this.domSelector);
        var _this = this;
        for (var i = 0, len = domList.length; i < len; i++) {
            domList[i].style.cursor = 'zoom-in';
            domList[i].addEventListener('click', function (event) {
                var target = event.target || event.srcElement;
                _this.showImageGlass(target.getAttribute('src'));
            }, false);
        }
    },


    initCssClass: function () {
        var style = document.createElement('style');
        var styleContent = '.' + this.boxClassName + '{position:fixed;top:0;left:0;width:100%;height:100%;text-align:center;cursor:zoom-out;background-color:' + this.boxBgColor + ';display:none;text-align:center;overflow:hidden;z-index:9999;}';
        styleContent += '.' + this.boxClassName + ' img {position:relative;top:50%;transform:translateY(-50%);max-width:90%;}';
        styleContent += '.postbird-img-glass-box-move{animation:postbird-img-glass .5s;-webkit-animation:postbird-img-glass .5s;-moz-animation:postbird-img-glass .5s;-o-animation:postbird-img-glass .5s;animation-fill-mode:forwards;-o-animation-fill-mode:forwards;-moz-animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}@-moz-keyframes postbird-img-glass{from{opacity:0;width:100%;height:100%;transform:translateY(-200px)}to{opacity:1;width:100%;height:100%;transform:translateY(0)}}@-webkit-keyframes postbird-img-glass{from{opacity:0;width:100%;height:100%;transform:translateY(-200px)}to{opacity:1;width:100%;height:100%;transform:translateY(0)}}@-o-keyframes postbird-img-glass{from{opacity:0;width:100%;height:100%;transform:translateY(-200px)}to{opacity:1;width:100%;height:100%;transform:translateY(0)}}@keyframes postbird-img-glass{from{opacity:0;width:100%;height:100%;transform:translateY(-200px)}to{opacity:1;width:100%;height:100%;transform:translateY(0)}}';
        style.innerHTML = styleContent;
        document.head.appendChild(style);
    }
};


//if jq error: auto load a new one
try {
    jQuery()
} catch (e) {
    let s = document.createElement('script');
    s.src = '//libs.baidu.com/jquery/1.8.3/jquery.min.js';
    s.charset = 'UTF-8';
    document.body.append(s);
}

if ($(window).width() > 800 && $(".atcs").height() < $(".sb-left").height()) {
    $(".atcs").css("min-height", $(".sb-left").height());
}

if ($(window).width() < 500) {
    $('#comments').parent('.post').css('padding', 0);
}

PostbirdImgGlass.init({
    domSelector: ".post-content img:not([unzoomable])",
    animation: true
});

$(".post-thumb img").lazyload();
$(".post-content img").lazyload();


facenamereplace = ["：滑稽：", "：喷：", "：喜欢：", "：阴险：", "：怒：", "：笑眼：",
    "：黑线：", "：鼓掌：", "：乖：", "：汗：", "：惊哭：", "：酷：", "：狂汗：", "：问号：",
    "：真棒：", "：不高兴：", "：大哭：", "：思考："];
/*
facereplace = [];
for (var i = 0; i < facenamereplace.length; i++) {
	facereplace[i] = theme_path+"/icon/s/img/"+facenamereplace[i].replace(/：/g,"")+".png";
}
*/
facereplace = [];
for (var i = 0; i < facenamereplace.length; i++) {
    facereplace[i] = themeUrl + "/icon/s/img/face_" + i + ".png";
}
try {
    if (showfacenamereplace) {
        for (var i = 0; i < facenamereplace.length; i++) {
            showfacenamereplace.innerHTML += facenamereplace[i];
        }
    }
} catch (e) {
}
var bodyhtml = $("#comments").html();
if (bodyhtml) {
    for (var i = 0; i < facereplace.length; i++) {
        bodyhtml = bodyhtml.replace(new RegExp(facenamereplace[i], "ig"), "<img class='tbbq' draggable='false' title='" + facenamereplace[i] + "' num='" + i + "' src='" + facereplace[i] + "' />");
    }
    $("#comments").html(bodyhtml);
    $("form .tbbq").click(function () {
        insertText($("textarea[name=text]")[0], facenamereplace[$(this).attr("num")]);
    });
}
bodyhtml = $("#rctrly").html();
if (bodyhtml) {
    for (var i = 0; i < facereplace.length; i++) {
        bodyhtml = bodyhtml.replace(new RegExp(facenamereplace[i], "ig"), "<img class='tbbq tiny' draggable='false' alt='😀' src='" + facereplace[i] + "' />");
    }
    $("#rctrly").html(bodyhtml);
}


$(".backtotop").click(function () {
    var speed = 200;
    $('body,html').animate({scrollTop: 0}, speed);
    return false;
});

function insertText(obj, str) {
    var m = obj.value.match(/：.*?：/g);
    if (m) {
        if (m.length > 9) {
            alert("最多添加10个表情！");
            return false;
        }
    }
    obj.value += str;
}


$("pre code").each(function () {
    this.innerHTML = this.innerHTML.replace(/((["'])(?:\\.|[^\\\n])*?\2)/ig, "<span class='hl-str'>$1</span>").replace(/(\\[\s\S])/ig, "<span class='hl-warn'>$1</span>").replace(/(\/\*[\s\S]+\*\/)/g, "<span class='hl-note'>$1</span>").replace(/(~\/| -{1,2}[a-z&;]{1,}[ :\n\r]|!|\^|\+|\*|%|\||&amp;|===|==|-&gt;|=&gt;|=&lt;|&lt;=|&gt;=|&gt;|&lt;)/ig, "<span class='hl-fh'>$1</span>").replace(/([^a-z0-9]|^)([\d\.]+)([^a-z0-9]|$)/ig, "$1<span class='hl-num'>$2</span>$3").replace(/([^a-z0-9]|^)([\d\.]+)([^a-z0-9]|$)/ig, "$1<span class='hl-num'>$2</span>$3").replace(/\b(RegExp|return|if|fi|then|else|break|continue|for|endif|in|not|die|exit|switch|case|throw|void|typeof|endwhile|elseif|import|array|while|foreach|important|new|and|or|xor|with|desc|limit|order|try|as|catch)\b/ig, "<span class='hl-kw'>$1</span>").replace(/((?=^|\n|\r| )\s*(\/\/|#).*(?=\r|\n|$))/g, "<span class='hl-note'>$1</span>").replace(/\b(echo|print|substr|replace|query|include|default|final|eval|exec|shell|list|function|static|const|var|let|unset|unlink|undefined|null|true|bind|false|empty|del|is|def|this|clear|screen|max|min|rgba|rgb|box|inherit|left|right|top|bottom|wrap|wget|ls|chmod|grep|cat|test|match|yum|apt|mv|cp|rm|sudo|sh|source|bash|find|more|touch|awk|curl|tee|tree|read|vim|diff|unzip|public|static|tar|ftp|cd|mount|stat|rmdir|git|dd|df|du|restart|stop|start|sfdisk|fdisk|kill|top|free|who|clear|reset|alias|gzip|rpm|pacman|dump|bzip2|dpkg|count|goto|document|window|Date|Math|install|remove|floor|make|isNaN|NaN)\b/ig, "<span class='hl-kf'>$1</span>").replace(/\b((?![0-9])[\w0-9]+(?=\())/ig, "<span class='hl-kf'>$1</span>").replace(/(\$(?![0-9])[\w0-9]+\b)/ig, "<span class='hl-var'>$1</span>");
});

if ($(".post-meta")) {
    $(".post-meta").css("width", $(".atcs").width() - 15);
}

$('.post-thumb img').each(function () {
    this.onerror = function () {
        $(this).attr("src", themeUrl + "/s/img/error.jpg");
    }
})
window.onload = function () {
    $("#pagecover").fadeOut()
}

/***表情结束***/


$('#weblogo').click(function () {
    cocoMessage.success('A finely crafted project');

});


/*!
coco-message 是一个简单实用的javascript信息提示插件， 兼容主流浏览器，兼容至ie9 (ie没有svg动画)

兼容性 >=ie9 
*/

"use strict";

function _typeof(o) {
    return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
        return typeof o
    } : function (o) {
        return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o
    }, _typeof(o)
}

!function (o, t) {
    "object" === ("undefined" == typeof exports ? "undefined" : _typeof(exports)) && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (o = o || self, o.cocoMessage = t())
}(void 0, function () {
    function o(o, t) {
        var e = document.createElement("div");
        for (var n in o) {
            var s = o[n];
            "className" == n ? (n = "class", e.setAttribute(n, s)) : "_" == n[0] && e.addEventListener(n.slice(1), s)
        }
        if ("string" == typeof t) e.innerHTML = t; else if ("object" == _typeof(t) && t.tagName) e.appendChild(t); else if (t) for (var i = 0; i < t.length; i++) {
            var c = t[i];
            e.appendChild(c)
        }
        return e
    }

    function t(o, t) {
        ["a", "webkitA"].forEach(function (e) {
            var n = e + "nimationEnd";
            o.addEventListener(n, function () {
                t()
            })
        })
    }

    function e(o, t) {
        for (var e in t) o.style[e] = t[e];
        "" === o.getAttribute("style") && o.removeAttribute("style")
    }

    function n(o, t) {
        var e = o.className || "";
        if (!s(e, t)) {
            var n = e.split(/\s+/);
            n.push(t), o.className = n.join(" ")
        }
    }

    function s(o, t) {
        return o.indexOf(t) > -1
    }

    function i(o, t) {
        var e = o.className || "";
        if (s(e, t)) {
            var n = e.split(/\s+/), i = n.indexOf(t);
            n.splice(i, 1), o.className = n.join(" ")
        }
        "" === o.className && o.removeAttribute("class")
    }

    function c(o, t) {
        var e = {};
        for (var n in h) e[n] = h[n];
        for (var s = 0; s < o.length; s++) {
            var i = o[s];
            void 0 !== i && ("string" == typeof i || "object" == _typeof(i) ? e.msg = i : "boolean" == typeof i ? e.showClose = i : "function" == typeof i ? e.onClose = i : "number" == typeof i && (e.duration = i))
        }
        return e.type = t, r(e)
    }

    function r(n) {
        var s = n.type, c = n.duration, r = n.msg, d = n.showClose, g = n.onClose, m = 0 === c, h = l();
        "loading" == s && (r = "" === r ? "正在加载，请稍后" : r, m = d, c = 0);
        var u = o({className: "coco-msg-wrapper"}, [o({className: "coco-msg coco-msg-fade-in ".concat(s)}, [o({className: "coco-msg-icon"}, h[s]), o({className: "coco-msg-content"}, r), o({
            className: "coco-msg-wait ".concat(m ? "coco-msg-pointer" : ""),
            _click: function () {
                m && f(u, g)
            }
        }, a(m))])]), v = u.querySelector(".coco-msg__circle");
        if (v && "loading" !== s && (e(v, {animation: "coco-msg__circle ".concat(c, "ms linear")}), "onanimationend" in window ? t(v, function () {
            f(u, g)
        }) : setTimeout(function () {
            f(u, g)
        }, c)), "loading" == s && 0 !== c && setTimeout(function () {
            f(u, g)
        }, c), p.children.length || document.body.appendChild(p), p.appendChild(u), e(u, {height: u.offsetHeight + "px"}), setTimeout(function () {
            i(u.children[0], "coco-msg-fade-in")
        }, 300), "loading" == s) return function () {
            f(u, g)
        }
    }

    function a(o) {
        return o ? '\n    <svg class="coco-msg-close" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515"></path></svg>\n    ' : '<svg class="coco-msg-progress" viewBox="0 0 33.83098862 33.83098862" xmlns="http://www.w3.org/2000/svg">\n    <circle class="coco-msg__background" cx="16.9" cy="16.9" r="15.9"></circle>\n    <circle class="coco-msg__circle" stroke-dasharray="100,100" cx="16.9" cy="16.9" r="15.9"></circle>\n    </svg>\n    '
    }

    function f(o, t) {
        o && (e(o, {padding: 0, height: 0}), n(o.children[0], "coco-msg-fade-out"), t && t(), setTimeout(function () {
            if (o) {
                for (var t = !1, e = 0; e < p.children.length; e++) p.children[e] === o && (t = !0);
                t && d(o), o = null, p.children.length || t && d(p)
            }
        }, 300))
    }

    function l() {
        return {
            info: '\n    <svg t="1609810636603" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3250"><path d="M469.333333 341.333333h85.333334v469.333334H469.333333z" fill="#ffffff" p-id="3251"></path><path d="M469.333333 213.333333h85.333334v85.333334H469.333333z" fill="#ffffff" p-id="3252"></path><path d="M384 341.333333h170.666667v85.333334H384z" fill="#ffffff" p-id="3253"></path><path d="M384 725.333333h256v85.333334H384z" fill="#ffffff" p-id="3254"></path></svg>\n    ',
            success: '\n    <svg t="1609781242911" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1807"><path d="M455.42 731.04c-8.85 0-17.75-3.05-24.99-9.27L235.14 553.91c-16.06-13.81-17.89-38.03-4.09-54.09 13.81-16.06 38.03-17.89 54.09-4.09l195.29 167.86c16.06 13.81 17.89 38.03 4.09 54.09-7.58 8.83-18.31 13.36-29.1 13.36z" p-id="1808" fill="#ffffff"></path><path d="M469.89 731.04c-8.51 0-17.07-2.82-24.18-8.6-16.43-13.37-18.92-37.53-5.55-53.96L734.1 307.11c13.37-16.44 37.53-18.92 53.96-5.55 16.43 13.37 18.92 37.53 5.55 53.96L499.67 716.89c-7.58 9.31-18.64 14.15-29.78 14.15z" p-id="1809" fill="#ffffff"></path></svg>\n    ',
            warning: '\n    <svg t="1609776406944" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="18912"><path d="M468.114286 621.714286c7.314286 21.942857 21.942857 36.571429 43.885714 36.571428s36.571429-14.628571 43.885714-36.571428L585.142857 219.428571c0-43.885714-36.571429-73.142857-73.142857-73.142857-43.885714 0-73.142857 36.571429-73.142857 80.457143l29.257143 394.971429zM512 731.428571c-43.885714 0-73.142857 29.257143-73.142857 73.142858s29.257143 73.142857 73.142857 73.142857 73.142857-29.257143 73.142857-73.142857-29.257143-73.142857-73.142857-73.142858z" p-id="18913" fill="#ffffff"></path></svg>\n    ',
            error: '\n    <svg t="1609810716933" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5514"><path d="M810 274l-238 238 238 238-60 60-238-238-238 238-60-60 238-238-238-238 60-60 238 238 238-238z" p-id="5515" fill="#ffffff"></path></svg>\n    ',
            loading: '\n    <div class="coco-msg_loading">\n    <svg class="coco-msg-circular" viewBox="25 25 50 50">\n      <circle class="coco-msg-path" cx="50" cy="50" r="20" fill="none" stroke-width="4" stroke-miterlimit="10"/>\n    </svg>\n    </div>\n    '
        }
    }

    function d(o) {
        o && o.parentNode.removeChild(o)
    }

    function g() {
        for (var o = 0; o < p.children.length; o++) {
            var t = p.children[o];
            f(t)
        }
    }

    function m() {
        var o = document;
        if (o && o.head) {
            var t = o.head, e = o.createElement("style"),
                n = "\n[class|=coco],[class|=coco]::after,[class|=coco]::before{box-sizing:border-box;outline:0}.coco-msg-progress{width:14px;height:14px}.coco-msg__circle{stroke-width:2;stroke-linecap:square;fill:none;transform:rotate(-90deg);transform-origin:center}.coco-msg-stage:hover .coco-msg__circle{-webkit-animation-play-state:paused!important;animation-play-state:paused!important}.coco-msg__background{stroke-width:2;fill:none}.coco-msg-stage{position:fixed;top:20px;left:50%;width:auto;transform:translate(-50%,0);z-index:3000}.coco-msg-wrapper{position:relative;left:50%;transform:translate(-50%,0);transition:height .25s ease-out,padding .25s ease-out;transition:height .35s ease-out,padding .35s ease-out;padding:8px 0;will-change:transform,opacity}.coco-msg-content,.coco-msg-icon,.coco-msg-wait{display:inline-block}.coco-msg-icon{position:relative;width:13px;height:13px;border-radius:100%;display:flex;justify-content:center;align-items:center;opacity:.8}.coco-msg-icon svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:11px;height:11px;box-sizing:content-box}.coco-msg-wait{width:20px;height:20px;position:relative}.coco-msg-wait svg{position:absolute;top:50%;right:-4px;transform:translate(0,-50%);fill:#b3b9b9}.coco-msg-close{width:16px;height:16px}.coco-msg-content{margin:0 10px;min-width:220px;text-align:left;font-size:14px;font-weight:400}.coco-msg.error .coco-msg-icon,.coco-msg.info .coco-msg-icon,.coco-msg.success .coco-msg-icon,.coco-msg.warning .coco-msg-icon{background-color:currentColor}.coco-msg{padding:13px 25px;border-radius:2px;position:relative;left:50%;transform:translate(-50%,0);display:flex;align-items:center}.coco-msg.info,.coco-msg.loading{color:#635f6b;background-color:#f3f3f4;box-shadow:0 0 1px 0 rgba(239,238,240,.3)}.coco-msg.success{color:#68c43b;background-color:#f0faeb;box-shadow:0 0 1px 0 rgba(145,194,126,.3)}.coco-msg.warning{color:#be820a;background-color:#faf4e1;box-shadow:0 0 1px 0 rgba(212,198,149,.3)}.coco-msg.error{color:#f74e60;background-color:#fee2e5;box-shadow:0 0 1px 0 rgba(218,163,163,.3)}.coco-msg.loading .coco-msg-icon{background-color:transparent}@keyframes coco-msg__circle{0%{stroke:#b3b9b9;stroke:currentColor}to{stroke:#b3b9b9;stroke:currentColor;stroke-dasharray:0 100}}.coco-msg_loading{flex-shrink:0;width:20px;height:20px;position:relative}.coco-msg-circular{-webkit-animation:coco-msg-rotate 2s linear infinite both;animation:coco-msg-rotate 2s linear infinite both;transform-origin:center center;height:18px!important;width:18px!important}.coco-msg-path{stroke-dasharray:1,200;stroke-dashoffset:0;stroke:currentColor;-webkit-animation:coco-msg-dash 1.5s ease-in-out infinite;animation:coco-msg-dash 1.5s ease-in-out infinite;stroke-linecap:round}@-webkit-keyframes coco-msg-rotate{100%{transform:translate(-50%,-50%) rotate(360deg)}}@keyframes coco-msg-rotate{100%{transform:translate(-50%,-50%) rotate(360deg)}}@-webkit-keyframes coco-msg-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}@keyframes coco-msg-dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}.coco-msg-pointer{cursor:pointer}.coco-msg-fade-in{-webkit-animation:coco-msg-fade .22s ease-out both;animation:coco-msg-fade .22s ease-out both}.coco-msg-fade-out{animation:coco-msg-fade .22s linear reverse both}@-webkit-keyframes coco-msg-fade{0%{opacity:0;transform:translate(-50%,0)}to{opacity:1;transform:translate(-50%,0)}}@keyframes coco-msg-fade{0%{opacity:0;transform:translate(-50%,-80%)}to{opacity:1;transform:translate(-50%,0)}}\n      ";
            e.innerHTML = n, t.children.length ? t.insertBefore(e, t.children[0]) : t.appendChild(e)
        }
    }

    if ("undefined" != typeof window) {
        var p = o({className: "coco-msg-stage"}), h = {msg: "", duration: 2e3, showClose: !1}, u = {
            info: function () {
                c(arguments, "info")
            }, success: function () {
                c(arguments, "success")
            }, warning: function () {
                c(arguments, "warning")
            }, error: function () {
                c(arguments, "error")
            }, loading: function () {
                return c(arguments, "loading")
            }, destroyAll: function () {
                g()
            }, config: function (o) {
                for (var t in o) Object.hasOwnProperty.call(o, t) && void 0 !== o[t] && (h[t] = o[t])
            }
        };
        return window.addEventListener("DOMContentLoaded", function () {
            m()
        }), u
    }
});

